#ifndef __LCD_DEV_H__
#define __LCD_DEV_H__

#define COLOR_RED           0xFFFF0000
#define COLOR_GREEN         0xFF00FF00
#define COLOR_BLUE          0xFF0000FF
#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_BLACK         0xFF000000
#define COLOR_LIGHTGRAY     0xFFD3D3D3
#define COLOR_DARKGRAY      0xFFA9A9A9

#define LCD_FRONT_COLOR         COLOR_BLACK
#define LCD_BACK_COLOR          COLOR_LIGHTGRAY
#define LCD_FONT_SIZE64			1
#define	LCD_FONT_SIZE32			2
#define LCD_FONT_SIZE16         3
#define LCD_FONT_SIZE12         4
#define LCD_DISPLAY_NORMAL		1
#define LCD_DISPLAY_RESVERSE	0
#define LCD_DEFAULT_FONT		LCD_FONT_SIZE16			// ascii 32

#define SCREEN_WIDTH            160
#define SCREEN_HEIGHT           160
#define SCREEN_PIXEL_SIZE       3

void lcd_put_line(int x1, int y1, int x2, int y2, int color);
int lcd_clear(int color);
void lcd_put_circle(int x0, int y0, int r, int color);
void lcd_printf(int line, int col, const char *fmt, ...);
void lcd_put_num240(int x, int y, char dat, int bkcolor, int ftcolor);
void lcd_put_str240(int x, int y, char *str, int bkcolor, int ftcolor);
void lcd_put_rect(int x, int y, int width, int height, int color);
void lcd_put_ascii_str16(int x, int y, char *str, int bkcolor, int ftcolor);

void lcd_put_str16(int x, int y, char *pstr, int mode);


#endif // __LCD_DEV_H__
